package com.it.ssh.service.impl;

import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.List;

import com.it.ssh.dao.BookDao;
import com.it.ssh.entity.Book;
import com.it.ssh.service.BookService;


public class BookServiceImpl implements BookService {
	private BookDao bookDao;
	
	
	

	public void setBookDao(BookDao bookDao) {
		this.bookDao = bookDao;
	}



	@Override
	public boolean add(Book book) {
		
		return bookDao.add(book);
	}

	@Override
	public boolean update(Book book) {
		// TODO Auto-generated method stub
		return bookDao.update(book);
	}

	@Override
	public boolean delete(int id) {
		// TODO Auto-generated method stub
		return bookDao.delete(id);
	}

	@Override
	public Book queryById(int id) {
		// TODO Auto-generated method stub
		return bookDao.queryById(id);
	}

	@Override
	public List<Book> queryAll() {
		// TODO Auto-generated method stub
		return bookDao.queryAll();
	}

}
